package cn.kgc.springcloud09.client;

import org.springframework.stereotype.Component;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/2/21
 * @Description:  快速响应方法类  -> HystrixClient
 */
@Component
public class HystrixClientFallBack implements HystrixClient {

    // 每个重写的方法就是接口中相应方法的fallBack
    @Override
    public String method1(Integer id) {

        return "网络异常,请刷新重试";
    }
}
